package pl.bizuteria.sklep.admin.client.place;

import com.google.gwt.place.shared.Place;
import com.google.web.bindery.requestfactory.shared.EntityProxy;

public class ProxyListPlace extends Place {
	Class<? extends EntityProxy> proxyType;

	public ProxyListPlace(Class<? extends EntityProxy> proxyType) {
		this.proxyType = proxyType;
	}

	public Class<? extends EntityProxy> getProxyType() {
		return proxyType;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof ProxyListPlace)) {
			return false;
		}
		if (this == obj) {
			return true;
		}
		ProxyListPlace other = (ProxyListPlace) obj;
		return proxyType.equals(other.proxyType);
	}
	
}
